/*********************\
* Author:Dzlua
* QQ:505544956
* Time:2017/04/15
\**********************/
#ifndef __LUA_ACTIVEX_H__
#define __LUA_ACTIVEX_H__
#pragma once

#include "../../Core/LuaControl.h"

namespace DuiLib {

class LuaActiveX : public LuaControl
{
    SDLUA_CLASS_DECLARE(LuaActiveX);

    int /*HWND*/ GetHostWindow();

    bool IsDelayCreate();
    void SetDelayCreate(bool bDelayCreate);
    bool IsMFC();
    void SetMFC(bool bMFC);

    //bool CreateControl(const CLSID clsid);
    //str
    int CreateControl(LuaState *L);
    //HRESULT GetControl(const IID iid, LPVOID* ppRet);
    //CLSID GetClisd();
    int GetModuleName(LuaState *L);
    int SetModuleName(LuaState *L);

    void SetVisible(bool bVisible);
    void SetInternVisible(bool bVisible);

    int SetPos(LuaState *L);
    int Move(LuaState *L);

};

}

#endif //__LUA_ACTIVEX_H__